package com.ftf.tp.blog.application.assembler;

import com.ftf.tp.blog.application.dto.ArticleCommentDTO;
import com.ftf.tp.blog.application.vo.ArticleCommentVO;
import com.ftf.tp.blog.domain.article.dos.ArticleCommentDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author tanghao
 * @date 2022/7/28
 */
@Mapper
public interface CommentAssembler {

    CommentAssembler INSTANCE = Mappers.getMapper(CommentAssembler.class);

    ArticleCommentDO dtoToDo(ArticleCommentDTO articleCommentDTO);

    ArticleCommentVO doToVo(ArticleCommentDO articleCommentDO);

}
